projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a1f771
)
(run_hook_with_args_2): New function.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 3 Oct 1995 09:11:08 +0000
(09:11 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 3 Oct 1995 09:11:08 +0000
(09:11 +0000)
src/eval.c
patch
|
blob
|
history
diff --git
a/src/eval.c
b/src/eval.c
index 938b20cd82439f121534daadc8ae388bf5a2c655..69ce3f35c54520fcdb425eedf755b1f1754289ae 100644
(file)
--- a/
src/eval.c
+++ b/
src/eval.c
@@
-2017,6
+2017,20
@@
run_hook_list_with_args (funlist, nargs, args)
UNGCPRO;
return Qnil;
}
+
+/* Run the hook HOOK, giving each function the two args ARG1 and ARG2. */
+
+void
+run_hook_with_args_2 (hook, arg1, arg2)
+ Lisp_Object hook, arg1, arg2;
+{
+ Lisp_Object temp[3];
+ temp[0] = hook;
+ temp[1] = arg1;
+ temp[2] = arg2;
+
+ Frun_hook_with_args (3, temp);
+}
\f
/* Apply fn to arg */
Lisp_Object